<!doctype html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.qdu.entity.Book"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html> 
    <head>
        <!-- Basic Page Needs -->
        <!--        <meta charset=utf-8"utf-8">-->
        <title>AMovie - Movie page</title>
        <meta name="description" content="A Template by Gozha.net">
        <meta name="keywords" content="HTML, CSS, JavaScript">
        <meta name="author" content="Gozha.net">

        <!-- Mobile Specific Metas-->
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta content="telephone=no" name="format-detection">

        <!-- Fonts -->
        <!-- Font awesome - icon font -->
        <link href="../../../netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" tppabs="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
        <!-- Roboto -->
        <link href="../../../fonts.googleapis.com/css-family=Roboto-400,700.css" tppabs="https://fonts.googleapis.com/css?family=Roboto:400,700" rel='stylesheet' type='text/css'>

        <!-- Stylesheets -->
        <!-- jQuery UI --> 
        <link href="../../../code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" tppabs="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" rel="stylesheet">

        <!-- Mobile menu -->
        <link href="css/gozha-nav.css" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/css/gozha-nav.css" rel="stylesheet" />
        <!-- Select -->
        <link href="css/external/jquery.selectbox.css" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/css/external/jquery.selectbox.css" rel="stylesheet" /> 
        <!-- Swiper slider -->
        <link href="css/external/idangerous.swiper.css" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/css/external/idangerous.swiper.css" rel="stylesheet" />
        <!-- Magnific-popup -->
        <link href="css/external/magnific-popup.css" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/css/external/magnific-popup.css" rel="stylesheet" />


        <!-- Custom -->
        <link href="css/style.css-v=1.css" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/css/style.css?v=1" rel="stylesheet" />

        <!-- Modernizr --> 
        <script src="js/external/modernizr.custom.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/modernizr.custom.js"></script>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>图书信息</title>
        <link rel="stylesheet" href="css/bootstrap.min.css"/>
        <link rel="stylesheet" href="css/style.css"/>
        <link rel="stylesheet" href="css/style_mxz.css"/>
        <!--        <link rel="shortcut icon" href="https://img3.doubanio.com/favicon.ico" type="image/x-icon">-->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <script src="js/jquery-3.4.1.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <script src="js/script.js" charset="UTF-8"></script>



    </head>
    <body>
        <div class="wrapper">
            <!-- Banner -->


            <!-- Header section -->
            <nav class="navbar navbar-inverse">
                <div class="container-fluid btn-group-lg">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">Brand</a>
                    </div>

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
                            <li><a href="#">Link</a></li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Action</a></li>
                                    <li><a href="#">Another action</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">One more separated link</a></li>
                                </ul>
                            </li>
                        </ul>
                        <form class="navbar-form navbar-left">
                            <div class="form-group">
                                <input type="text" class="form-control" placeholder="Search">
                            </div>
                            <button type="submit" class="btn btn-default">Submit</button>
                        </form>
                        <ul class="nav navbar-nav navbar-right">
                            <li><a href="#">Link</a></li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Action</a></li>
                                    <li><a href="#">Another action</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </div><!-- /.container-fluid -->
            </nav>


            <!-- Main content -->
            <div class="jumbotron">
                <h2 class=" padding10">图书介绍： ${book.bName}${book.bpublisher}</h2>
                <p>详细信息</p>
                <p><a class="btn btn-primary btn-lg" href="http://localhost:8084/J01_T05_P01/gabs?" role="button">返回</a></p>
            </div>

            
                <div class="col-sm-12">
                    <div class="movie">
                        <h2 class="page-heading">${book.bName}</h2>




                        <div class="movie__info">
                            <div class="col-sm-4 col-md-3 movie-mobile">
                                <div class="movie__images">
                                    <span class="movie__rating">${book.brating}</span>
                                    <img class="img-thumbnail" src="images/${book.bCover}" alt="${book.bName}" tppabs="http://placehold.it/526x773"> 
                                </div>
                                <div class="movie__rate"> <div id='score' class="score"></div></div>
                            </div>

                            <div class="col-sm-8 col-md-9">
                                <p class="movie__time">${book.bpageNum} 页</p>


                                <p class="movie__option"><strong>Name: </strong>${book.bName}</a</p>
                                <p class="movie__option"><strong>Year: </strong> ${book.byear}</a</p>

                                <p class="movie__option"><strong>Release date: </strong>December 12, 2012</p>
    <!--                            <p class="movie__option"><strong>Translator: </strong><a href="#">${book.bTranslator}</a></p>-->

                                <p class="movie__option"><strong>Language:</strong> ${book.blanguage}</p>
                                <p class="movie__option"><strong>Publisher:</strong>${book.bpublisher}</p>


                                <!--添加图书到我的收藏-->
                                <div class="movie__btns movie__btns--full">
                                    <form class="form-inline" id="add_form2">
                                        <input name="mbid" type="text" style="display:none"  class="form-control" value="${book.bId}">
                                    </form>
                                    <button type='button' class="btn comment-form__btn watchlist" id="favorites_add">Add to mybook</button>
                                </div>


                            </div>
                        </div>

                        <div class="clearfix"></div>

                        <h2 class="page-heading">The plot</h2>

                        <div class="panel panel-primary">
                            <div class="panel-body">
                                <h3 class="">${book.bName}图书简介 </h3>
                            </div>
                            <div class="panel-footer">
                                <p>
                                    <!--电影剧情介绍-->
                                <h4>   ${book.bDigest}</h4>

                                <br>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="container">
                        <h2 class="page-heading">comments</h2>
                        <div class="comment-wrapper">
                            <form id="comment-form" class="comment-form">
                                <label class="comment-form__info">leave your comments</label>
                                <br><br>
                                <textarea class="comment-form__text" placeholder='Add you comment here' name="contents"></textarea>
                                <br><br>
                                <label for="selectRating">对此部图书的评分</label>
                                <select name="rating" id="selectRating" class="form-control">
                                    <option value="1">⭐</option>
                                    <option value="2">⭐⭐</option>
                                    <option value="3">⭐⭐⭐</option>
                                    <option value="4">⭐⭐⭐⭐</option>
                                    <option value="5">⭐⭐⭐⭐⭐</option>
                                </select>
                                &nbsp; <br>
                                <button type='button' class="btn btn-danger comment-form__btn" id="comment_add">add comment</button>
                            </form>

                            <br>
                            <div class="container">
                                <div class="comment-sets">

                                    <!--*********************************************************************** class="comment comment--answer":回复-->

                                    <c:forEach items="${commentList}" var="cl">

                                        <div class="comment">
                                            <div class="comment__images">
                                                <img alt='Ta的个人头像' src="../images/${cl[2]}">
                                            </div>
                                            <a href='#' class="comment__author"><span class="social-used fa fa-vk"></span>${cl[1]}</a>
                                            <p class="comment__date">${cl[7]}<span class="comment__author" style="color: orange" >评分：${cl[8]}</span></p>
                                            <p class="comment__message">${cl[5]}</p>
                                            <a class="comment__reply" id="btn_showAddModal1" type="button">Reply</a>
                                            <jsp:include page="/vmbrls_mxz?cid=${cl[3]}"></jsp:include>
                                            </div>

                                    </c:forEach>




                                    <!--                        <div class="comment comment--answer">
                                                                    <div class="comment__images">
                                                                        <img alt='Ta的个人头像' src="../images/50x50.png" tppabs="http://placehold.it/50x50">
                                                                    </div>
                                                                    <a href='#' class="comment__author"><span class="social-used fa fa-vk"></span>Ice</a>
                                                                    <p class="comment__date">2020/5/21 5:21<span class="comment__author" style="color: orange" >评分：5</span></p>
                                                                    <p class="comment__message">看了一眼进度条，我从2分钟开始哭，真的从头哭到尾，泪点密集到仿佛枪林弹雨。藏了整整65年啊，对满世界快乐奔跑的异性情侣来说，爱是天主赐福是伟大唱诵。但对她们来说，爱却是每封情书必须把右下角的署名撕掉，以防其中一个人出了意外，也不会被人发现她们的爱。去tm的世界。</p>
                                                                    <a href='#' class="comment__reply">Reply</a>
                                                                    <a class="comment__reply" id="btn_showAddModal1" type="button">Reply</a>  
                                                                    <a id="btn_showReply" type="button">查看回复</a>
                                                                </div>-->


                                    <!--                         <div class="modal fade" id="reply_modal1" tabindex="-1">
                                                                    <div class="modal-dialog">
                                                                        <div class="modal-content">
                                                                            <div class="modal-header">
                                                                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                                                                <h4 class="modal-title text-success" id="myModalLabel">此条消息的回复</h4>
                                                                            </div>
                                                                            <div class="modal-body">
                                                                                
                                                                            </div>
                                                                            
                                                                        </div>
                                                                    </div>
                                                                </div>-->






                                    <div class="modal fade" id="add_modal1" tabindex="-1">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                                    <h4 class="modal-title text-success" id="myModalLabel">您的回复</h4>
                                                </div>
                                                <div class="modal-body">
                                                    <form class="form-inline" id="add_form1">
                                                        <label for="ireply">回复内容：</label>
                                                        <textarea id="ireply" type="text" name="contents" placeholder="输入您的TA的回复：" class="form-control sinfo"></textarea>
                                                        <br>

                                                        <!--被回复用户标号-->
                                                        <input name="usrid" type="text" style="display:none"  class="form-control" value="${cl[0]}">


                                                        <!--回复哪个评论-->
                                                        <input name="cid" type="text" style="display:none" class="form-control" value="${cl[3]}">


                                                    </form>
                                                </div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-warning" data-dismiss="modal">取消</button>
                                                    <button type="button" id="btn_add1" class="btn btn-primary">保存</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                    <!--**************************************************************************************************-->
                                </div>
                            </div>                      
                        </div>
                        <div class="comment-more">
                            <a href="Mycomment.jsp" class="watchlist">View my comments</a>
                        </div>
                    </div>


                    <!--Third Slide-->






                    <!-- JavaScript-->
                    <!-- jQuery 1.9.1--> 
                    <script src="../../../cdn.bootcss.com/jquery/1.10.1/jquery.min.js" tppabs="https://cdn.bootcss.com/jquery/1.10.1/jquery.min.js"></script>
                    <script>window.jQuery || document.write('<script src="js/external/jquery-1.10.1.min.js"/*tpa=http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/jquery-1.10.1.min.js*/><\/script>')</script>
                    <!-- Migrate --> 
                    <script src="js/external/jquery-migrate-1.2.1.min.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/jquery-migrate-1.2.1.min.js"></script>
                    <!-- jQuery UI -->
                    <script src="../../../code.jquery.com/ui/1.10.4/jquery-ui.js" tppabs="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
                    <!-- Bootstrap 3--> 
                    <script src="../../../netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js" tppabs="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>

                    <!-- Mobile menu -->
                    <script src="js/jquery.mobile.menu.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/jquery.mobile.menu.js"></script>
                    <!-- Select -->
                    <script src="js/external/jquery.selectbox-0.2.min.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/jquery.selectbox-0.2.min.js"></script>

                    <!-- Stars rate -->
                    <script src="js/external/jquery.raty.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/jquery.raty.js"></script>
                    <!-- Swiper slider -->
                    <script src="js/external/idangerous.swiper.min.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/idangerous.swiper.min.js"></script>
                    <!-- Magnific-popup -->
                    <script src="js/external/jquery.magnific-popup.min.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/jquery.magnific-popup.min.js"></script> 

                    <!--*** Google map  ***-->
                    <script src="../../../maps.google.com/maps/api/js-sensor=true" tppabs="https://maps.google.com/maps/api/js?sensor=true"></script> 
                    <!--*** Google map infobox  ***-->
                    <script src="js/external/infobox.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/infobox.js"></script> 

                    <!-- Share buttons -->
                    <script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script>
                    <script type="text/javascript" src="../../../s7.addthis.com/js/300/addthis_widget.js#pubid=ra-525fd5e9061e7ef0" tppabs="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-525fd5e9061e7ef0"></script>

                    <!-- Form element -->
                    <script src="js/external/form-element.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/external/form-element.js"></script>
                    <!-- Form validation -->
                    <script src="js/form.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/form.js"></script>

                    <!-- Custom -->
                    <script src="js/custom.js" tppabs="http://demo.qfpffmp.cn/cssthemes3/mbts_6_amovie/js/custom.js"></script>

                    <script type="text/javascript">
                        $(document).ready(function () {
                            init_MoviePage();
                            init_MoviePageFull();
                        });
                    </script>

                    </body>
                    </html>
